package com.dubito.pattern.接口隔离原则;

/**
 * @author liliang
 * @date 2020/8/26.
 */
public class Order implements IOrderForPortal, IOrderForOtherSys, IOrderForAdmin {

    /**
     * 返回给 IOrderForPortal
     *
     * @return order
     */
    public static IOrderForPortal getOrderForPortal() {
        return new Order();
    }

    /**
     * 返回给 IOrderForOtherSys
     *
     * @return order
     */
    public static IOrderForOtherSys getOrderForOtherSys() {
        return new Order();
    }

    /**
     * 返回给 IOrderForAdmin
     *
     * @return order
     */
    public static IOrderForAdmin getOrderForAdmin() {
        return new Order();
    }


    @Override
    public String getOrder() {
        return "返回订单";
    }

    @Override
    public void insertOrder() {
        System.out.println("添加订单.");
    }

    @Override
    public void updateOrder() {
        System.out.println("更新订单");
    }

    @Override
    public void deleteOrder() {
        System.out.println("删除订单..");
    }
}
